import java.util.ArrayList;
import java.util.Collections;



public class BirdBundle {
	private ArrayList<Integer> birds = new ArrayList<Integer>();
	private int species = -1;
	private int id;
	
	public BirdBundle(int id)
	{
		birds.add(new Integer(id));
		this.id = id;
	}
	
	public void setSpecies(int s)
	{
		this.species = s;
	}
	@Override
	public boolean equals(Object o)
	{
		return ((BirdBundle)o).id == this.id;
		
	}
	
	public ArrayList<Integer> getBirds()
	{
		return birds;
	}
	
	public void addBird(int e)
	{
		birds.add(new Integer(e));
		Collections.sort(birds);
	}
	
	public int getSpecies()
	{
		return this.species;
	}
	
	
	
	
}
